package com.rowline.admin.module.study.collections;

import java.math.BigDecimal;
import java.util.Hashtable;
import java.util.concurrent.ConcurrentHashMap;

/**
 * ClassName:ConcurrentHashMapTest
 * Created by 245167
 * on 2017/11/14  14:30
 * description:
 */
public class ConcurrentHashMapTest {

    public static void main(String[] args) {
        ConcurrentHashMap concurrentHashMap = new ConcurrentHashMap(15);
        //concurrentHashMap.put(null,"hello");

        Hashtable<String,String> hashtable = new Hashtable<String,String>();
        //hashtable.put("1",null);
        hashtable.put(null, "1");

        double d = 1.00499;
        BigDecimal b = new BigDecimal("1.00499");
        System.out.println(new BigDecimal(123456789.01).toString());
        System.out.println(new BigDecimal("123456789.01").toString());

    }

}
